#if 0

#include "stdneb.h"
#include <Ogre.h>
// #include <cstdlib>
// #include <ctime>
#include <string>
#include <iostream>

#include "core/logManager.h"
using namespace Core;
using namespace std;

#define START_PERFORMANCE(i) \
	LARGE_INTEGER BeginTime##i; \
	LARGE_INTEGER Frequency##i; \
	QueryPerformanceFrequency(&Frequency##i); \
	QueryPerformanceCounter(&BeginTime##i);

#define END_PERFORMANCE(i) \
	LARGE_INTEGER EndTime##i; \
	QueryPerformanceCounter(&EndTime##i); \
	std::cout <<"Performance(Millisecond) : "<< ( EndTime##i.QuadPart - BeginTime##i.QuadPart )*1000 / Frequency##i.QuadPart ;

#define GET_PERFORMANCE(i) ( EndTime##i.QuadPart - BeginTime##i.QuadPart )*1000 / Frequency##i.QuadPart


int main(int, char**) 
{
	//test logManager
#if 1

	Ogre::LogManager* ogre_log_mgr = new Ogre::LogManager();
	ogre_log_mgr->createLog("ogre_log_test.log",true,true);

	Core::LogManager* core_log_mgr = new Core::LogManager();
	core_log_mgr->createLog("core_log_test.log",true,true);

	START_PERFORMANCE(1)
	for (int i = 0; i<1000; i++)
	{
		Ogre::LogManager::getSingletonPtr()->stream()<<" AAAAA"<<23<<" BBBB"<<15.6<<" [YYYYYYYYYYYY]"<<78888<<" This is, of course, only a model."<<i;
	}
	END_PERFORMANCE(1)
	Ogre::LogManager::getSingletonPtr()->stream()<<"Performance(Millisecond) : "<< GET_PERFORMANCE(1);

	START_PERFORMANCE(2)
	for (int i = 0; i<1000; i++)
	{
		Core::LogManager::Instance()->stream().write("AAAAA%d BBBB%.2f [YYYYYYYYYYYY]%d This"
			"is, of course, only a model.--%d",23,15.6,78888,i);
	}
	END_PERFORMANCE(2)
	Core::LogManager::Instance()->stream().write("Performance(Millisecond) : %d", GET_PERFORMANCE(2) );

#endif
	cin.ignore();
}

#endif